package com.dh.bm.service;

import com.dh.bm.dao.BookDao;
import com.dh.bm.dao.impl.BookDaoImpl;
import com.dh.bm.entity.Book;

import java.util.List;

public class BookService {
    private BookDao bookDao = new BookDaoImpl();

    public List<Book> findAll() {
        // 逻辑
        return bookDao.queryAll();
    }

    public Book findById(int id) {
        return bookDao.queryById(id);
    }
}
